<ui:composition template="/WEB-INF/template/padrao.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="titulo">Configuração do Banco</ui:define>

	<ui:define name="corpo">	
		<h1 align="center" >Configuração de Acesso ao banco de dados</h1>
		<h:form id="my_sql">
			
			<h:panelGrid columns="3">
				<p:outputLabel value="Banco de dados MySQL" styleClass="negrito"></p:outputLabel>
				<h:inputHidden></h:inputHidden>	
				<p:outputLabel value="Configuração Atual: " styleClass="negrito"/>
				
				<p:outputLabel value="Nome do Banco de Dados MySQL: " for="nm_mysql" />
				<p:inputText value="#{}" id="nm_mysql"></p:inputText>
				<p:outputLabel value="#{}"/>

				<p:outputLabel value="Porta do Banco de Dados MySQL: " for="porta_mysql" />
				<p:inputText value="#{acessMB.acess_mysql_bean.port}" id="porta_mysql"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_mysql_bean.port}"/>

				<p:outputLabel value="IP do Banco de Dados MySQL: " for="ip_mysql" />
				<p:inputText value="#{acessMB.acess_mysql_bean.ip}" id="ip_mysql"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_mysql_bean.ip}"/>

				<p:outputLabel value="Usuário do Banco de Dados MySQL: " for="user_mysql" />
				<p:inputText value="#{acessMB.acess_mysql_bean.user}" id="user_mysql"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_mysql_bean.user}"/>

				<p:outputLabel value="Senha do Banco de Dados MySQL: " for="passw_mysql" />
				<p:password value="#{acessMB.acess_mysql_bean.password}" id="passw_mysql"></p:password>
				<h:inputHidden/>

				<p:commandButton actionListener="#{acessMB.write_acess_Mysql}" value="Gravar" update=":my_sql"></p:commandButton>
			</h:panelGrid>
		</h:form>
		
		
		<h:form id="oracle">
			<h:panelGrid columns="3">
				<p:outputLabel value="Banco de dados Oracle" styleClass="negrito"></p:outputLabel>
				<h:inputHidden></h:inputHidden>	
				<p:outputLabel value="Configuração Atual: " styleClass="negrito"/>
			
				<p:outputLabel value="Nome do Banco de Dados Oracle: " for="nm_oracle" />
				<p:inputText value="#{acessMB.acess_oracle_bean.nm_database}" id="nm_oracle"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_oracle_bean.nm_database}"/>

				<p:outputLabel value="Porta do Banco de Dados Oracle: " for="porta_oracle" />
				<p:inputText value="#{acessMB.acess_oracle_bean.port}" id="porta_oracle"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_oracle_bean.port}"/>

				<p:outputLabel value="IP do Banco de Dados Oracle: " for="ip_oracle" />
				<p:inputText value="#{acessMB.acess_oracle_bean.ip}" id="ip_oracle"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_oracle_bean.ip}"/>

				<p:outputLabel value="Usuário do Banco de Dados Oracle: " for="user_oracle" />
				<p:inputText value="#{acessMB.acess_oracle_bean.user}" id="user_oracle"></p:inputText>
				<p:outputLabel value="#{acessMB.acess_oracle_bean.user}"/>

				<p:outputLabel value="Senha do Banco de Dados Oracle: "	for="passw_oracle" />
				<p:password value="#{acessMB.acess_oracle_bean.password}" id="passw_oracle"></p:password>
				<h:inputHidden/>

				<p:commandButton action="#{acessMB.write_acees_oracle}"	value="Gravar" update=":oracle"></p:commandButton>
			</h:panelGrid>
		</h:form>

	</ui:define>
</ui:composition>